home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2002 #11
/
Amiga Plus CD - 2002 - No. 11.iso
/
Tools
/
MorphOS
/
tictactoe-1.2.1
/
scores.h
< prev
next >
Wrap
C/C++ Source or Header
|
2002-10-22
|
538b
|
23 lines
#include "t3types.h"
#ifndef __SCORES__H__
#define __SCORES__H__
/*
* How to score each move. Depending on which rule is
* satisfied, one or more of the following will be awarded.
*/
enum scores {
WIN_SCORE = 40, /* Winning move */
BLOCK_SCORE = 20, /* Block opponent's win */
CENTRE_SCORE = 16, /* Capture centre */
CORNER_SCORE = 4, /* Capture corner */
LOS_SCORE = 10, /* Self line of sight */
STICKY_SCORE = 14 /* Stick to opponent */
};
int get_winning_position(int who);
int set_scores(int who);
#endif